package com.syh.jn.scm.infrastructure.repository.model.system;


import com.syh.core.ddd.infrastructure.repository.model.SuperModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by soci.song on 2018/12/13.
 * 多账号关联模型
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "T_SYSTEM_ACCOUNT_PHONE")
public class AccountOfPhoneModel extends SuperModel {
    /**
     * 登录手机账号
     */
    @Column(name = "LOGIN_PHONE", columnDefinition = "varchar(50) COMMENT '登录手机账号'")
    private String loginPhone;
    /**
     * 登录密码
     */
    @Column(name = "LOGIN_PASSWORD", columnDefinition = "varchar(200) COMMENT '登录密码'")
    private String loginPassword;
    /**
     * 姓名
     */
    @Column(name = "NAME", columnDefinition = "varchar(50) COMMENT '姓名'")
    private String name;
    /**
     * 使用情况
     */
    @Column(name = "STATUS", columnDefinition = "smallint COMMENT '使用情况: -1冻结, 1启用'")
    private Short status;
    /**
     * 默认登录的关联账号
     */
    @Column(name = "DEFUALT_ACCOUNT_ID", columnDefinition = "smallint COMMENT '默认登录的关联账号ID'")
    private Long defualtAccountId;
    /**
     * 创建时间
     */
    @Column(name="CREATE_TIME_STAMP" , columnDefinition=("bigint COMMENT '创建时间'"))
    private Long createTimeStamp;
    /**
     * 最后修改时间
     */
    @Column(name="LAST_UPDATE_TIME_STAMP" , columnDefinition=("bigint COMMENT '最后修改时间'"))
    private Long lastUpdateTimeStamp;
    /**
     *  所属终端系统:DOWNSTREAM,OPERATION,SUPPLIER,UPSTREAM
     */
    @Column(name = "TERMINAL_TYPE", columnDefinition = "varchar(50) COMMENT '所属终端'")
    private String terminalType;
}
